| Previous | Chapter contents | Chapter top | Section top | Next |
You can use the QTVRGoToNodeID function to set the current node of a movie.
OSErr QTVRGoToNodeID (QTVRInstance qtvr, UInt32nodeID);
The QTVRGoToNodeID function sets the current node in the QuickTime VR movie specified by the qtvr parameter to be the node that has the ID specified by the nodeID parameter.
The QuickTime VR Manager defines several constants for specific nodes. For example, you can set nodeID to kQTVRDefaultNode to set the current node to the default node in the scene. Similarly, you can set nodeID to kQTVRPreviousNode to return to the previous node. See "Node IDs" for a description of the available node ID constants.
Setting the current node also sets the pan, tilt, and field of view of the new current node to their default values. As a result, you should call QTVRGoToNodeID before you call QTVRSetPanAngle , QTVRSetTiltAngle , or QTVRSetFieldOfView .
| Previous | Chapter contents | Chapter top | Section top | Next |